package com.web.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.web.manager.pojo.MajorCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MajorCourseMapper extends BaseMapper<MajorCourse> {

    @Select("select * from major_course")
    List<MajorCourse> list();

    @Select("select * from major where id = #{majorid}")
    MajorCourse getByMajorid(Integer majorid);
}
